package com.sq.partner.manager.service;

import java.util.Map;

import javax.servlet.http.HttpSession;

import org.springframework.web.bind.annotation.ResponseBody;

import com.sq.partner.manager.mybatis.model.GatewayUser;
import com.sq.partner.manager.mybatis.model.RuleDefinition;
import com.sq.partner.manager.util.Page;


/**
 * 规则配置Service
 * 
 * @author MYL
 *
 */
public interface RuleConfigerService {
	/***
	 * 规则查询方案信息
	 * @param page
	 * @return
	 * @throws Exception
	 */
	public Page<Map<String, Object>> queryPlanPageByCriteria(Page<Map<String, Object>> page,GatewayUser user)throws Exception;
	/***
	 * 查询元素列表
	 */
	public Map<String, Object> queryTemplate(String riskMain,String prodType,String planCode) throws Exception;
	
	public  Page saveTemplateList(String ruleTemplate,String ruleName,String planCode,String partnerNo) throws Exception; 
	
	public  Page editTemplateList(String ruleTemplate,String ruleName,String planCode,String partnerNo,String ruleId) throws Exception; 

	public  Page deleteRuleByid(String id) throws Exception; 

	public  Page<RuleDefinition> queryDefinitionPage(Page<RuleDefinition> page) throws Exception;
	
	public  Map<String, Object> editDefinition(String id) throws Exception;

}
